Import('env', 'target_lib', 'libs')

main_src_file = 'main.cpp'

all_src = Glob('*.cpp')

src = list()
for file in all_src:
    if not env.GetBuildPath(file).endswith(main_src_file):
        src = src + [file]

env.Library(target = target_lib, source = src)

env.Program(target = 'CycleFinder', source = main_src_file, LIBS=[target_lib, libs])
